import re
aa = "12345678.23"
if not bool(re.match("^([1-9]\d{0,7}|0)([.]?|(\.\d{1,2})?)$", aa)):
    print({"msg": "数据格式不正确,", "code": 401})